package com.team5.stockservice.service.impl;

import com.team5.stockservice.entity.Outport;
import com.team5.stockservice.mapper.OutportMapper;
import com.team5.stockservice.service.OutportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class OutportServiceImpl implements OutportService {
    @Autowired
    OutportMapper outportMapper;

    @Override
    public void delete(Integer id) {
        outportMapper.delete(id);
    }

    @Override
    public Outport selectID(Integer id) {
        Outport outport = outportMapper.selectID(id);
        return outport;
    }

    @Override
    public List<Outport> select(Integer providerid, Integer goodsid, Integer index, Integer limit) {
        // TODO 自动生成的方法存根
        List<Outport> select = outportMapper.select(providerid, goodsid, index, limit);
        return select;
    }

    @Override
    public void insert(String paytype, Date outputtime, String operateperson, Integer number, String remark,
                       Double outportprice, Integer providerid, Integer goodsid) {
        // TODO 自动生成的方法存根
        outportMapper.insert(paytype, outputtime, operateperson, number, remark, outportprice, providerid, goodsid);
    }
}
